Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added equality/comparison overloads for Duration and TimeSpan #171

Merged
merged 2 commits into from
Jun 28, 2016
Merged

Added equality/comparison overloads for Duration and TimeSpan #171

merged 2 commits into from
Jun 28, 2016

Conversation

eriove
Copy link
Contributor

@eriove eriove commented Jun 27, 2016

Added equality/comparison overloads for Duration and TimeSpan. This makes it easier to work seamlessly with both types in the same code.

{
TimeSpan timeSpan = TimeSpan.FromHours(12);
Duration duration = Duration.FromHours(11);
Assert.IsTrue(timeSpan != duration, "timeSpan should equal to duraiton");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of typos on duraiton here.

@angularsen
Copy link
Owner

angularsen commented Jun 27, 2016

Other than that, looks good. Let me know when fixed and I will merge it in.

@eriove
Copy link
Contributor Author

eriove commented Jun 28, 2016

Should be fixed now.

@angularsen
Copy link
Owner

Thanks. Also seems github finally introduced email notifications on new commits in a PR :-)

@angularsen angularsen merged commit d9b388c into angularsen:master Jun 28, 2016
@angularsen
Copy link
Owner

Nuget out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants